import { Allow, IsString } from 'class-validator';
import { CommonColumnEntity } from '../../../../util/entity/common.column.entity';

export class CreateRoleDto extends CommonColumnEntity {
  @IsString({ message: '角色名称不能为空' })
  name: string;

  @IsString({ message: '角色编码不能为空' })
  code: string;

  @Allow()
  sort?: number;
}
